Embed Flow Examples
Off page login with Code Behind:
- User logs in through an external process.
- Credentials are sent to a compiled code module which connects via REST to Pyramid to get the authentication token.
- Once returned, the token is saved locally in the hosting app as a cookie.
- The embedded content is triggered and sends a request for content to Pyramid together with the authentication cookie.
- Pyramid authenticates the session and returns the relevant content to the 3rd party hosting app.
Off Page Login with External Service:
- User logs in through an external process, which forwards the details to a separate service.
- Credentials are retrieved and automatically sent via a hosted service to Pyramid to get the authentication token on behalf of the user (via REST)
- Once returned, the token is sent to the hosting page by the services and the page logic (JavaScript) saves it locally as a cookie.
- The embedded content is triggered and sends a request for content to Pyramid together with the authentication cookie.
- Pyramid authenticates the session and returns the relevant content to the 3rd party hosting app.
On Page Login (JavaScript Only):
- User goes to an HTML page and completes an HTML credential form.
- The credentials are sent through JavaScript and REST (AJAX) to Pyramid to get the authentication token
- Once returned, the token is saved locally in a cookie.
- The embedded content is triggered and sends a request for content to Pyramid together with the authentication cookie.
- Pyramid authenticates the session and returns the relevant content to the 3rd party hosting app.